module.exports = function HTTPS(objAll) {
  let {
    url,
    ...obj
  } = objAll;
  return new Promise(function (resolve, reject) {
    wx.request({
      url: 'https://api.lofter.com' + url,
      header: {
        "Content-Type": "application/x-www-form-urlencoded"
      },
      ...obj,
      // method:"get",
      success(data) { //成功回调
        resolve(data);
      },
      fail(err) { //失败回调
        reject(err);
      },
      complete() { //接口调用结束，回调函数

      }
    })
  })


}